﻿using Microsoft.AspNetCore.Mvc;
using RobosimAPI.Class;

namespace RobosimAPI.Controllers
{
	[Route("back/Api2/Client/getNotice")]
	public class GetNoticeController : ControllerBase
	{
		//string notice = Config.data["notice"];
		[HttpPost]
		public IActionResult GetNotice([FromForm]GetNoticeModel model)
		{
			string notice = Config.data["notice"];
			return Ok(new GetNoticeResponse { status = 1, data = notice });
		}
	}
	public class GetNoticeModel
	{
		public int type { get; set; }	
		public string? version { get; set; }
	}
	public class GetNoticeResponse
	{
		public int status { get; set; }
		public string? data { get; set; }
	}
}
